package com.mkz.jbpm.feign.fallback;

import org.springframework.stereotype.Component;

import com.mkz.core.common.constant.CommonConstants;
import com.mkz.core.common.util.ResponseResult;
import com.mkz.jbpm.feign.ActiIdentityClient;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author KuangJianyu
 * @date 2020-03-26 15:58:06
 */
@Slf4j
@Component
public class ActiIdentityServiceFallback implements ActiIdentityClient {
	@Setter
	private Throwable cause;

	@Override
	public ResponseResult<Boolean> saveGroup(String roleCode, String roleName, String urrJson) {
		log.error("修改用户组信息失败，"+CommonConstants.ERROR_SHOW_TEXT, cause);
		return null;
	}
	
	@Override
	public ResponseResult<Boolean> saveUser(String userId, String fullname) {
		log.error("修改用户信息失败，"+CommonConstants.ERROR_SHOW_TEXT, cause);
		return null;
	}
}
